package com.base.service.impl;

import com.base.mapper.voipmapper.TourOrderMapper;
import com.base.po.voip.TourOrder;
import com.base.po.voip.TourOrderExample;
import com.base.service.TourOrderService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("tourOrderService")
public class TourOrderServiceImpl implements TourOrderService {
	
	@Autowired
	private TourOrderMapper tourOrderMapper;


	@Override
	public int countByExample(TourOrderExample example) {
		return tourOrderMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(TourOrderExample example) {
		return tourOrderMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String orderid) {
		return tourOrderMapper.deleteByPrimaryKey(orderid);
	}

	@Override
	public int insert(TourOrder record) {
		return tourOrderMapper.insert(record);
	}

	@Override
	public int insertSelective(TourOrder record) {
		return tourOrderMapper.insertSelective(record);
	}

	@Override
	public List<TourOrder> selectByExample(TourOrderExample example) {
		return tourOrderMapper.selectByExample(example);
	}

	@Override
	public List<TourOrder> selectByAll(Page page, String parentid, String shopid, String mobile, String ordernum, String goodstext, Byte status, Byte deliverystatus, String supplier, String createtime, int role) {
		return tourOrderMapper.selectByAll(page, parentid, shopid, mobile, ordernum, goodstext, status, deliverystatus, supplier, createtime, role);
	}

	@Override
	public TourOrder selectByPrimaryKey(String orderid) {
		return tourOrderMapper.selectByPrimaryKey(orderid);
	}

	@Override
	public int updateByExampleSelective(TourOrder record, TourOrderExample example) {
		return tourOrderMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(TourOrder record, TourOrderExample example) {
		return tourOrderMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(TourOrder record) {
		return tourOrderMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(TourOrder record) {
		return tourOrderMapper.updateByPrimaryKey(record);
	}

	@Override
	public int countByAll(String parentid, String shopid, String mobile, String ordernum, String goodstext, Byte status, Byte deliverystatus, String supplier, String createtime, int role) {
		return tourOrderMapper.countByAll(parentid, shopid, mobile, ordernum, goodstext, status, deliverystatus, supplier, createtime, role);
	}
}
